<% if current_user && current_user.isadmin %>
<h1>Editing Restaurant</h1>

<%= render 'form' %>

<%= link_to 'Show', @restaurant %> |
<%= link_to 'Back', :back %>
<% else %>
<p>Error: You are not authorized to add modify restaurants.</p>
<p>If you would like to modify a restaurant, please contace an administrator. %>.</p>
<p>Or you can return to the <%= link_to "home page", root_url %>.</p>
<% end %>
